#pragma once
#include "GameControl.h"
#include "MyImage.h"

class CGameCheckBox : public CGameControl
{
public:
	CGameCheckBox(void);
	~CGameCheckBox(void);

	void LoadResFromDir(const string& rkDir);
	void LoadResFromFile(const string& rkFile);

	virtual bool OnLeftBtnDown(int iX,int iY);
	virtual bool OnLeftBtnUp(int iX,int iY);
	virtual void OnDraw();

	void SetChecked(bool bChecked);
	bool GetChecked();

protected:
	virtual void OnSetText();

protected:
	CMyImage m_kUnCheckedNormal;
	CMyImage m_kUnCheckedFocus;
	CMyImage m_kUnCheckedClick;
	CMyImage m_kUnCheckedDisable;
	CMyImage m_kCheckedNormal;
	CMyImage m_kCheckedFocus;
	CMyImage m_kCheckedClick;
	CMyImage m_kCheckedDisable;

	bool m_bChecked;
};
